package xin.nick.demo;

import feign.RequestInterceptor;
import feign.RequestTemplate;

public class MyFeignBasicAuthRequestInterceptor implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate requestTemplate) {
        // 这里处理业务
        requestTemplate.header("Content-Type", "application/json");
    }
}
